package io.github.junxworks.qt.modules.tushare.service;

import java.util.List;
import java.util.Map;

import com.google.common.collect.Maps;

import io.github.junxworks.qt.modules.data.vo.DStockProfileVo;

/**
 * @program :springbootdev
 * @description:
 * @author:Junxworks
 * @create:2019-08-16 19:51
 */
public interface BaseInfoService {

	public static final Map<String, DStockProfileVo> profilesCache = Maps.newHashMap();

	void refreshStockProfilesCache();

	List<DStockProfileVo> getAllProfiles();

	List<DStockProfileVo> getAllAvailabeProfiles();

	DStockProfileVo getProfileBySymbol(String symbol);

	DStockProfileVo getProfileByTsCode(String tsCode);

	DStockProfileVo getProfileFromCache(String tsCode);

	List<Integer> getFinancePeriods();
	
}
